package com.itheima.health.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Job {
    @Scheduled(cron = "*/5 * * * * ?")
    public void run(){
        System.out.println("图一执行一次");
    }

    @Scheduled(cron = "*/10 * * * * ?")
    public void run1(){
        System.out.println("图二执行一次");
    }

    @Scheduled(cron = "*/15 * * * * ?")
    public void run2(){
        System.out.println("图三执行一次");
    }
}
